package com.hexb.smh.mapper;

import com.hexb.smh.entity.Brand;
import com.hexb.smh.entity.Config;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

/**
 * @author : hexb
 */
@Mapper
@Repository
public interface BrandMapper {


    default List<Brand> list(){
        List<Brand> list = new ArrayList<>();
        Brand b1 = new Brand();
        Brand b2 = new Brand();
        b1.setId(1);
        b1.setName("美年");
        b1.setLogo("/brands/meinian.png");

        b2.setId(2);
        b2.setName("美兆");
        b2.setLogo("/brands/meizhao.png");

        list.add(b1);
        list.add(b2);

        Brand b3 = new Brand();
        Brand b4 = new Brand();    

        b3.setId(1);
        b3.setName("慈铭");
        b3.setLogo("/brands/ciming.png");

        b4.setId(1);
        b4.setName("奥亚");
        b4.setLogo("/brands/aoya.png");

        //list.add(b3);
        //list.add(b4);

        return list;
    }

}
